package com.soul.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;


/**
 * @author mdoya
 * @version 1.0
 * @description: 点赞集合
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "praise")
public class Praise implements java.io.Serializable {

    private ObjectId id;
    private ObjectId publishId;    // 动态id
    private Integer commentType;   // 点赞类型，1-点赞，2-评论，3-喜欢
    private Long userId;           // 点赞人
    private Long publishUserId;    // 被点赞人ID
    private Long created; 		   // 点赞时间
    private Long updated; 		   // 取消时间
    private Integer likeCount = 0; // 点赞数量

}
